home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.hut.fi!usenet
- From: hazor@potkulauta.cs.hut.fi (Tommi [Hazor] Lahtonen)
- Newsgroups: comp.lang.c++
- Subject: question about string class
- Date: 10 Mar 1996 21:57:22 +0200
- Organization: Helsinki University of Technology
- Sender: hazor@potkulauta.cs.hut.fi
- Distribution: inet
- Message-ID: <izrhgvwsov1.fsf@potkulauta.cs.hut.fi>
- NNTP-Posting-Host: potkulauta.cs.hut.fi
- X-Newsreader: Gnus v5.1
-
- Where can I find information about the methods inside the string class
- that comes with c++ (g++, #include <string>) ...?
-
- I need to know how can I empty my string, like if I have
- string text;
- text = "something";
- text.empty();
-
- --> I want text to be empty but empty() method does not seem to work?
- what is the right one?
-
- and then I want to know how to put a specific char into specifix place
- in my string...
- for example , I want to change the "something" into "somethin!"
- what method does that?
-
- please, give me few examples about doing these...
- --
- Tommi Lahtonen, tlahtone@snakemail.hut.fi, URL: http://www.hut.fi/~tlahtone
-
- There is no point in being grown up if you can't be childish sometimes. -Dr. Who
-